package tema_01_profesor.server;

import java.awt.*;
import javax.swing.*;

public class Ventana extends JFrame 
{
	private static final long serialVersionUID = 1L;
	private JTextArea jta;
	
	public Ventana()
	{
		configurar();
	}
	
	private void configurar()
	{
		Container c = this.getContentPane();
		jta = new JTextArea();
		JScrollPane jsp = new JScrollPane(jta);
		jsp.setSize(new Dimension(300,300));
		jsp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
		c.add(jsp,BorderLayout.CENTER);
		this.setSize(new Dimension(300,300));
		this.setVisible(true);
		
	}
	
	public void mostrar(String s)
	{
		jta.append(s);
	}
}

